/**
 * Created by Amaris on 2016/12/6.
 */

var express = require('express');
var router = express.Router();
var strategyMeetingCtrl = require('../../controller/controller.strategy-meeting.js');

router.get('/getStrategyMeetingInfo', function (req, res, next) {
    strategyMeetingCtrl.getInfo(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.post('/createStrategyMeeting', function (req, res, next) {
    strategyMeetingCtrl.create(req.body, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.post('/updateStrategyMeeting', function (req, res, next) {
    strategyMeetingCtrl.update(req.body, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});
router.get('/getListByTeamId', function (req, res, next) {
    strategyMeetingCtrl.getListByTeamId(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.get('/getStrategyMeetingList', function (req, res, next) {
    strategyMeetingCtrl.getList(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

module.exports = router;
